@(openExams: List[models.domain.Project], closedExams: List[models.domain.Project],oldExams: List[models.domain.Project])

@teacherMain(title = "Próf") {
   <link rel="stylesheet" href="/public/stylesheets/exams.css">

    <div class="container">

        <div class="row">
            <div class="span12">
                <h2>Öll Próf</h2>
                <p style="text-align:right"><a href="@routes.TeacherController.createAssignment()" class="btn btn-primary"><i class="icon-white icon-edit"></i> Búa til nýtt próf</a> </p>
                <div class="tabbable">
                    <ul class="nav nav-tabs">
                        <li class ="active"><a href ="#opid" data-toggle="tab">Opin Próf</a> </li>
                        <li><a href ="#lokad" data-toggle="tab">Lokuð Próf</a> </li>
                        <li><a href ="#gomul" data-toggle="tab">Próf ekki sett fyrir</a> </li>
                    </ul>
                    <div class = "tab-content">
                        <div class = "tab-pane active" id ="opid">
                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Próf</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir</th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(exam <- openExams){
                                        <tr>
                                        <td><a href="@{routes.TeacherController.teacherOneAssignment(exam.getVerkefni_id,exam.getHopur_id)}"/>@exam.getName</td>
                                        <td>@exam.getCourse</td>
                                        <td>@exam.getbeginDate()</td>
                                        <td>@exam.getHandInDate</td>
                                        <td>@(exam.getWeight)%</td>
                                        </tr>
                                    }
                                </tbody>

                            </table>
                        </div> <!--close div opid -->

                        <div class="tab-pane" id="lokad">

                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Próf</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir</th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(exam <- closedExams){
                                        <tr>
                                        <td><a href="@{routes.TeacherController.teacherOneAssignment(exam.getVerkefni_id,exam.getHopur_id)}"/>@exam.getName</td>
                                        <td>@exam.getCourse</td>
                                        <td>@exam.getbeginDate()</td>
                                        <td>@exam.getHandInDate</td>
                                        <td>@(exam.getWeight)%</td>



                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div> <!--close div lokad -->

                        <div class="tab-pane" id="gomul">

                            <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                                <thead>
                                    <tr>
                                        <th>Verkefni</th>
                                        <th>Fag</th>
                                        <th>Lagt fyrir </th>
                                        <th>Skilafrestur</th>
                                        <th>Vægi</th>
                                    </tr>
                                </thead>

                                <tbody>
                                    @for(exam <- oldExams){
                                        <tr>
                                        <td><a href="assignmentToGroup/@exam.getVerkefni_id"/>@exam.getName</td>
                                        <td>@exam.getCourse</td>
                                        <td>@exam.getbeginDate</td>
                                        <td>@exam.getHandInDate</td>
                                        <td>@(exam.getWeight)%</td>
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div> <!--close div gomul-->
                    </div> <!--tab content -->


                </div> <!--tabbable -->


            </div>
        </div>
    </div>

}